const express = require('express');
const body =  require('body-parser');
const cors =  require('cors');
const server = express()

const router =  require('C:\\www\\2302\\day36\\跨域\\proxy\\server2\\router');
server.use(cors()); // 把资源共享给所有访问的客户端 
server.use('/static',express.static('./static'))
server.use(body({extended:false}));
server.use(body.json());

server.use('/api',router)

server.listen(9090,()=>{
    console.log('我是9000 来自server2')
})